package com.wn.trade.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 机构投标记录
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("机构投资标记录")
public class AgencyBid implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty("投标人/机构用户标识")
    @TableField("USER_ID")
    private Long userId;

    @ApiModelProperty("投标人/机构名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty("投标人用户编码")
    @TableField("USER_CODE")
    private String userCode;

    @ApiModelProperty("投标金额")
    @TableField("AMOUNT")
    private BigDecimal amount;

    @ApiModelProperty("投标状态")
    @TableField("BID_STATUS")
    private String bidStatus;

    @ApiModelProperty("创建时间")
    @TableField("CREATE_DATE")
    private Date createDate;

    @ApiModelProperty("流水号")
    @TableField("REQ_CODE")
    private String reqCode;

    @ApiModelProperty("可用状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty("借款项目标识")
    @TableField("BORROW_RECORD_ID")
    private Long borrowRecordId;

    @ApiModelProperty("借款项目编码-冗余字段")
    @TableField("BORROW_RECORD_NO")
    private String borrowRecordNo;

    @ApiModelProperty("借款项目名称-冗余字段")
    @TableField("BORROW_RECORD_NAME")
    private String borrowRecordName;

    @ApiModelProperty("借款项目的期限-冗余字段")
    @TableField("BORROW_RECORD_PERIOD")
    private Integer borrowRecordPeriod;

    @ApiModelProperty("投资年化利率-冗余字段")
    @TableField("INVEST_RATE")
    private BigDecimal investRate;

}
